package com.qut.graduate.busrtquery.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * //"routeid":"22","stationid":"1","stationdualid":"1","stationtype":"主站上客站","segmentname":"22单程",
 * // "segmentid":"8525729","staionname":"德江路停车场","groupname":"gj","direction":"1","subwayname":""
 * //{"routeid":"22","stationid":"31","stationdualid":"31","stationtype":"中间站","segmentname":"22单程",
 * // "segmentid":"8525729","staionname":"德江路","groupname":"gj","direction":"0","subwayname":""}
 */
public class BusStation implements Parcelable{
    private String routeid;
    private String stationid;
    private String stationdualid;
    private String stationtype;
    private String segmentname;
    private String segmentid;
    private String staionname;
    private String groupname;
    private String direction;
    private String subwayname;

    public BusStation() {
    }

    protected BusStation(Parcel in) {
        routeid = in.readString();
        stationid = in.readString();
        stationdualid = in.readString();
        stationtype = in.readString();
        segmentname = in.readString();
        segmentid = in.readString();
        staionname = in.readString();
        groupname = in.readString();
        direction = in.readString();
        subwayname = in.readString();
    }

    public static final Creator<BusStation> CREATOR = new Creator<BusStation>() {
        @Override
        public BusStation createFromParcel(Parcel in) {
            return new BusStation(in);
        }

        @Override
        public BusStation[] newArray(int size) {
            return new BusStation[size];
        }
    };

    @Override
    public String toString() {
        return "BusStation{" +
                "routeid='" + routeid + '\'' +
                ", stationid='" + stationid + '\'' +
                ", stationdualid='" + stationdualid + '\'' +
                ", stationtype='" + stationtype + '\'' +
                ", segmentname='" + segmentname + '\'' +
                ", segmentid='" + segmentid + '\'' +
                ", staionname='" + staionname + '\'' +
                ", groupname='" + groupname + '\'' +
                ", direction='" + direction + '\'' +
                ", subwayname='" + subwayname + '\'' +
                '}' + "\n";
    }

    public String getRouteid() {
        return routeid;
    }

    public void setRouteid(String routeid) {
        this.routeid = routeid;
    }

    public String getStationid() {
        return stationid;
    }

    public void setStationid(String stationid) {
        this.stationid = stationid;
    }

    public String getStationdualid() {
        return stationdualid;
    }

    public void setStationdualid(String stationdualid) {
        this.stationdualid = stationdualid;
    }

    public String getStationtype() {
        return stationtype;
    }

    public void setStationtype(String stationtype) {
        this.stationtype = stationtype;
    }

    public String getSegmentname() {
        return segmentname;
    }

    public void setSegmentname(String segmentname) {
        this.segmentname = segmentname;
    }

    public String getSegmentid() {
        return segmentid;
    }

    public void setSegmentid(String segmentid) {
        this.segmentid = segmentid;
    }

    public String getStaionname() {
        return staionname;
    }

    public void setStaionname(String staionname) {
        this.staionname = staionname;
    }

    public String getGroupname() {
        return groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getSubwayname() {
        return subwayname;
    }

    public void setSubwayname(String subwayname) {
        this.subwayname = subwayname;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(routeid);
        parcel.writeString(stationid);
        parcel.writeString(stationdualid);
        parcel.writeString(stationtype);
        parcel.writeString(segmentname);
        parcel.writeString(segmentid);
        parcel.writeString(staionname);
        parcel.writeString(groupname);
        parcel.writeString(direction);
        parcel.writeString(subwayname);
    }
}
